<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <link rel="shortcut icon" href="${pageContext.request.contextPath}/web/img/icon.ico" />
    <title>客户关系管理系统-用户拜访记录</title>
    <link href="${pageContext.request.contextPath}/web/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/7.0.0/normalize.min.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/web/css/main.css" />
    <!--[if lt IE 9]>
      <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    <div class="container-fluid bg">
      <!--页面头部开始-->
      <jsp:include page="../util/top.jsp"></jsp:include>
      <!--页面头部结束-->
      
      <!--页面主体开始-->
      <div class="main">
        <div class="main-left col-lg-2 col-md-2 col-sm-3">
          <!--导航菜单开始-->
          <%@ include file="../util/menu.jsp"%>
          <!--导航菜单结束-->
        </div>
        <div class="main-right col-lg-10 col-md-10 col-sm-9">
          <div class="row">
		   <ul class="breadcrumb">
		     <span>当前位置：</span>
		     <li><a href="#">拜访管理</a></li>
		     <li class="active">拜访列表</li>
		   </ul>
		 </div>
		 <div class="panel panel-default">
		   <div class="panel-body">
		     <div class="table-responsive">
		       <table class="table table-bordered table-hover">
		         <thead>
		           <tr class="bg-info">
		             <th>用户名称</th>
		             <th>客户名称</th>
		             <th>拜访地址</th>
		             <th>拜访内容</th>
		             <th>相关操作</th>
		           </tr>
		         </thead>
		         <tbody>
		           <c:forEach items="${visitList}" var="visit">
		              <tr>
                        <td>${visit.adminUser.name}</td>
                        <td>${visit.customer.name}</td>
                        <td>${visit.address}</td>
                        <td>${visit.content}</td>
                        <td><a href="${pageContext.request.contextPath}/visit_delete.action?id=${visit.id}">删除</a> <a href="${pageContext.request.contextPath}/visit_toEditPage.action?id=${visit.id}">修改</a></td>
                      </tr>
		           </c:forEach>
		         </tbody>
		       </table>
		     </div>
		   </div>
		 </div>
        </div>
      </div>
      <!--页面主体结束-->
      
      <!--页面底部开始-->
      <div class="foot col-lg-12 col-md-12 col-sm-12 col-xs-12">
        <hr />
        <p class="text-center">版权所有：XXX公司&nbsp;&nbsp;&nbsp;技术支持：魏志文</p>
      </div>
      <!--页面底部内容结束-->
    </div>
    <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
    <script src="${pageContext.request.contextPath}/web/js/bootstrap.min.js"></script>
  </body>
</html>